projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8eb48a8
)
themingengine: plug a couple of leaks
author
Xan Lopez
<xlopez@igalia.com>
Wed, 15 Jun 2011 12:13:20 +0000
(14:13 +0200)
committer
Xan Lopez
<xlopez@igalia.com>
Wed, 15 Jun 2011 12:13:20 +0000
(14:13 +0200)
gtk/gtkthemingengine.c
patch
|
blob
|
history
diff --git
a/gtk/gtkthemingengine.c
b/gtk/gtkthemingengine.c
index b43bda7d8cf461e105418ffdc183451975f6374d..89b710998466c1457a7f62bb95ff9b32619cf9b4 100644
(file)
--- a/
gtk/gtkthemingengine.c
+++ b/
gtk/gtkthemingengine.c
@@
-2939,6
+2939,7
@@
gtk_theming_engine_render_icon_pixbuf (GtkThemingEngine *engine,
stated = gdk_pixbuf_get_from_surface (surface, 0, 0,
cairo_image_surface_get_width (surface),
cairo_image_surface_get_height (surface));
+ cairo_surface_destroy (surface);
}
else if (state & GTK_STATE_FLAG_PRELIGHT)
{
@@
-2956,6
+2957,7
@@
gtk_theming_engine_render_icon_pixbuf (GtkThemingEngine *engine,
stated = gdk_pixbuf_get_from_surface (surface, 0, 0,
cairo_image_surface_get_width (surface),
cairo_image_surface_get_height (surface));
+ cairo_surface_destroy (surface);
}
else
stated = scaled;